package edu.java.homework.hw11.enums.solution.actors;

import edu.java.homework.hw11.enums.solution.dish.Dish;


public class Cook extends Actor {

	// --- Constructors, Getters/Setters ---------------------------------------

	public Cook(String name, Dish dish) {
		super(name, dish);
	}

	// --- Methods -------------------------------------------------------------
	@Override
	public void run() {
		// super.run();
		System.out.println(Thread.currentThread().getName() + " starts...");

		getDish().prepareDish();
	}

}
